package com.erlang4j.api.exceptions;

import com.erlang4j.internal.exceptions.Erlang4jException;
import com.erlang4j.internal.exceptions.Erlang4jExceptionConstants;
import com.erlang4j.internal.messages.MessageToken;

/**
 * <p>
 * the pattern you have specified is malformed. either you have closed something that wasn't opened, or you have a close
 * with out an open
 * </p>
 * <p>
 * Example patterns that would give this are "atom}" and "{atom]"
 * </p>
 * 
 * @author Phil Rice
 */
public class Erlang4jMalformedPattern extends Erlang4jException {

	public Erlang4jMalformedPattern(MessageToken token) {
		super(Erlang4jExceptionConstants.malformedPatternKey, token.type, token.value, token.pos, token.raw);
	}

}
